import data from "./data.json";

export function getMessage(index, beg = 9) {
  return Object.keys(data).slice((index - 1) * beg, index * beg);
}
export function getMessageValue(key) {
  return data[key] ? data[key] : [];
}
